import { Object } from "core-js";

export default {
    namespaced: true,
    state: {
        position:'郑州市',
        lng:0,
        lat:0,
        banner:[],
        brandList:[],
        channel:[],
        hotGoods:[],
        newCategoryList:[],
        newGoods:[],
        topicList:[],
    },
    mutations: {
        getPosition(state,pos){
            state.position = pos.title;
            state.lng = pos.point.lng;
            state.lat = pos.point.lat;
        },
        getHomeData(state,data){
            console.log(data);
            Object.assign(state,data);
        }
    },
    actions: {},
    getters: {}
}